import request from "@/utils/request";

export function getFaultTypeByPage(query) {
  return request({
    url: `/system/faultType/getFaultTypeByPage`,
    method: "post",
    data: query,
  });
}

// 增加流程模型

export function addFaultType(query) {
  return request({
    url: `/system/faultType/addFaultType`,
    method: "post",
    data: query,
  });
}
/**
 *
 * @param {*} query
 * @returns
 */
export function delFaultType(query) {
  return request({
    url: `/system/faultType/delFaultType`,
    method: "post",
    data: query,
  });
}

export function updateFaultType(query) {
  return request({
    url: `/system/faultType/updateFaultType`,
    method: "post",
    data: query,
  });
}
